Re-fixed build on Linux, simplified qmake scripts a bit.