[WIN32] added more logging and some smaller changes