Include <signal.h> for kill(2)'s prototype.
Don't cast away a const.
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.