CFLAGS is a user variable, extracted from the environment at configure time
and settable by the user at build time. We must not override this variable.
Define NO_SYS_HEADERS, as the monolithic build does. Helps FreeBSD.
Don't include validate.c in the library, since it seems to be a userland
test program.