Warn that use of private types requires both public and private imports

Task-number: QTBUG-37751
Change-Id: I5a91ec1dc4b38e47846e5e72e41902be876cb306
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>