Fixed joyent/node#8683
Fixed build failure and test case on OSX
Merge pull request #1 from ghostoy/extern-string

Extern string