managed to compile and run on windows 8