cmake: set PIC for x86_64
cmake: fix path to generated headers