Changes I had to make to get this to build on windows.

I had to make a few tweaks to get this to build on windows 7 with Qt version 5.3.2.