build: Add a `staticlib` target to the Makefile

A `staticlib` target has been added to the Makefile. It is based on
node.gyp new target `node_base` with type `static_library`. This target
is useful for embedding the node event loop.

Fixes joyent/node#3143