Fixes crashing on Windows with Qt 5.4