Fix build when private Qt headers are not available.