Made compilable with Qt 5.3 and Visual Studio 2012

Created a solution for VS 2012 and modified some obsolete functions and
header includes to make it compatible with Qt 5.3. I've checked and it
builds with both Visual Studio 2012 and Qt Creator 3.2.