windows: fix module registration

See https://github.com/joyent/node/issues/7116

The linker was optimizing the static variables that were supposed
to trigger module initialization.

I am making them non-static, and dllexport so that they don't get
optimized away.