getting the old library to compile with the current Arduino environment