gyp: fix post-mortem in v0.11

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