fixes for qt and laucnher