Add CXXFLAGS; only use CFLAGS for C sources