Fix building with PCH disabled.
Merge pull request #1594 from rohit-n/build-pch

Fix building with PCH disabled.