Fixes .fPIC and rtest dependency.