Updated the build system to allow compilation under Qt4 and Qt5. Support for HiDPi displays.