ensure c++ compiles against both node v0.8.x and v0.10.x