Fix build breaks on Qt 4