Fix the build on OS X

There's a hack in `build.sh` that is needed until after the bug in GYP is fixed.