Add correct GCC option.
Pthreads functions don't set errno.