Append _REENTRANT to list of required definitions.

This is consistent to what's done with autoconf.
Set HAVE_PTHREAD_INIT using result gathered by FindThreads CMake module.