fix install of r_static/modular interfaces when DESTDIR is set