Fix/master/arduino

A few more minor changes to make the RTS compile for the Arduino platform.