Add -fPIC when building shared/dynamic library