Windows Qt5 port compilation fixes.