Update arduino kernel template, make it compile