Include the necessary ifdefs for DAV functionality

This patch includes or excludes the necessary *DAV bits in Cyrus IMAP when compiled --with or --without httpd/dav