now compiles and runs under msvc :)