fixes for Qt4 on linux