Fix compilation and upload error for Leonardo with 1.0.6.