Fixed compilation issue on Windows
Fixed compilation on Mac
Added testing that QT GUI build is successfull