Fix compilation of Cosa outside of Arduino IDE