add missing checks to configure.cmake remove dead code and unused HAVE_xxx constants from the sources