Fixed log printing for windowed apps in win32.
Added 'os' module and fixed some errors in the build.

Module 'os' currently contains a non-blocking message dialog.