Fixes linking errors on Windows

Detailed information on cause and fix here:
https://groups.google.com/forum/#!topic/nodejs/onA0S01INtw