vp8: Enclose pthread function calls in ifdefs