Pass CXXFLAGS to v8 build

Cherry-picked from 3be254e
Closes #1874
Review 1136 by @tryneus