remove pthread requirement for the build
cleanup checks for various header files