fix configure script to check pthread_atfork(3) in the correct way