fixed compile errors on MSVC caused by __attribute__ tag
added finding/linking libxml2 and zlib to CMakeLists.txt
added checked_deleter syntax