Fix compilation error with Qt 5 on Windows.