Change how RTS libraries get installed; fixes trac #3794