Library isse fix

Fixed some library issues due to a different and more compatible
arduino makefile on OS X