Makefile: build ref from ffi with nw-gyp