Fix function overwriting on Windows with Qt5.