build: fix building shared library using gyp

Does what it says on the tin :-)