fix binding.gyp typos and fix build for macos and linux