Move to static library and add .def file in order to allow node.js to load it