Win32 port (MSVC) and some general fixes