more compiler fixes, including virtual destructors that clang warns about.
fixes #7