Build static library with -fPIC.