Simple changes to make us build in Arduino environment, as a library (more to follow).