Hacked a fix for a missing PTHREAD_MUTEX_DEFAULT define.
Update ./configure.