Fixed Win32 debug builds.
Various fixes to make everything work!

1. It all (!) works correctly (!!)