Add compiler extra flags to cxxflags and cflags