update sheepthreads.c to work with newer PPC Linux distros

Patch by "Kernigh" posted on emaculation.com forums.
Merge branch 'master' into madds