Fixes for compilation on Windows with Qt4.