Minor tweaks to make it compile and make the console pause on windows.