Merge pull request #10394 from alalek:cmake_fix_pch_pic_pie