fix compilation, use fPIC for everything that the shared library links.