Cleanup configure a bit.

Allow user to specify CFLAGS and propagate to all builds.
Check for -Werror-implicit-function-declaration.  This warning indicates
porting issues and should not be ignored.
Include <signal.h> for kill(2)'s prototype.