Qt 5 compilation fixes.