Fixes to compile on Arduino IDE