ensure resid is built with -fPIC