fix shadow build with -qt-zlib and pre-generated headers

Task-number: QTBUG-32641
Change-Id: Ifefa62ff8ce50207de47caf958c96f8b033ebc23
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>