Qt5 and windows specific fixes