Fixed Qt5-specific build issues.