patch to make rme compile