Windows support complete.
Made the Windows code compilable with C++ (necessary for any non-GCC compiler)