add missing -fPIC for static libraries