modify src/CMakeLists.txt to add -fPIC when compiling static library to allow it linked into other shared libraries