fixed rmt build-problems