Remove duplicate compiler flags

CCFLAGS and CXXFLAGS both get passed to the C++ compiler, so eliminate duplicates between them.