Make node-nslog compile on Windows and Linux

Currently log are printed to stdout on Windows and Linux.