Fix compilation error with Qt 5 on Windows. Closes #142.