Precise build

Fix source code. Small pro file optimisation. Did not unify pro files for both systems.