fix gyp script bug for compiling shared_library