Issue #1007

Enabled PIC in CMakeLists.txt