library support adapted from https://github.com/LieBtrau/arduino-due-makefile/