improve way native modules are handled

fixes webpack/node-libs-browser#15