fix undefined reference errors

Fixes this problem:
```
../src/node-capnp/capnp.cc:2027: error: Uncaught exception in capability close() method.; fromJsException(tryCatch.Exception()) = ../src/node-capnp/capnp.cc:684: error: ReferenceError: resolve is not defined
```