compile on mac

fix for https://github.com/mikesmullin/node-gd/issues/10