Arduino library fixes