Qt4 compatibility fixes
Better and more portable .pro, using pkg-config on Unix