add -fPIC to compile flags