add -fPIC to C/CXXFLAGS for shared library