patch gyp to allow common 'libraries' config for both osx and linux