FreeBSD fails because PTHREAD_THREADS_MAX is too large for arrays, lets redefine it.