Fix compile error using Qt 4.8.5 on Windows