gyp: fix post-mortem in v0.11

Expose missing constants and keep symbols on OSX.
Merge remote-tracking branch 'upstream/master'