OS X build fix.
Re-order CFLAGS/CXXFLAGS in configure.ac.