Fix for compiling on Windows

Split logging.go code into platform specific files.
Some of the functionality is not available on windows.