Update to work on Qt5 and windows.