Arduino Due fixes for shield compatibility