Fix compilation when declarative private headers are absent

Change-Id: I1a58d9bce7c0c6409b0473e81913d7d207b88444
Reviewed-by: Marco Bubke <marco.bubke@digia.com>