Compiles and runs (but not correctly) under win32.
Corrected Windows UI.
Still not correct Windows wait function.