Remove HAVE_READ defines, because they are defined in the CMakeLists.txt.
Fix build error in check_cxx_source_compiles sample.
Use aut_ptr in CheckDirStatRecurse().
Use aut_ptr in CheckDirStatRecurse().
Change TempDirCleanup() from private to public.
Merge pull request #12 from alja/master

Minor fixes and additional log messages.