Fixing some problems in Makefile.am

- Removing CXXFLAGS
- _CPPFLAGS = CORE_CPPFLAGS