Static libraries do need to be build with fPIC on some platforms so add compiler flag to CMake file