Moved all compiler flags from Makefile.am to configure.ac.