cmake: fix -fPIC/-fPIE handling in precompiled headers (PCH)