makefiles osx: add cxxflags to core compile rules