Fixed linking error where order of libraries matters.
Specified directories for all intermediate compilation files to prevent polluting source directories.
Merge branch 'qt5_again' of github.com:Susurrus/qgroundcontrol into qt5_again