w32pthreads: Fix function pointer casts