Pass CXXFLAGS to v8 build

Closes #1874
Review 1136 by @tryneus