add cmake build script; add virtual destrctor for Mistory