Compatibility with Qt 5 and Visual Studio

Thank you for all the great work you have done on this useful project. I made some minor changes to your codebase, so I can run it with Qt 5. I build it Windows and Linux.