Fixed build on Qt 5 and simplified qmake files