Some arduino build fixes