boards: removed -lto flag and cleanup for udoo&arduino due

fixes #1364