In the folder plugins/tasklist/
execute the patch as:
patch -p0 < xfce4-panel-4.8.6-tasklist.patch

