BUGFIX: sometimes precompiled header (.pch file) is not included in project, and thus missing UIKit and Foundation. Fixes #995 and #971