Fixed PTHREAD config not being set correctly
Fixed not finding FCNTL and pthread_rwlock_rdlock