fixes #231 cmake add -fPIC to CXX_FLAGS