[makefiles] LOCAL_CXXFLAGS is obsoleted. Replaced it with the correct replacement.