build.sh: force use of -fPIC on static libraries to fix build error