Some autoconf/automake cleanup, & attempt to unit-test only when check present

Should not explicitly set the GCC only flag for C99. Using macro that
should test for other compilers.