Compile library with -fPIC.