Updated for node-gyp

Tested quickly on mac and linux... feedback would be good about windows.