Added Visual Studio project files and fixed some minor things, that doesnt
compile under VS. Still not working under Windows!