Resolved all compilation warnings

Resolved all compilation warnings (e.g. missing virtual destructors) in latest version of Clang to avoid potential problems in the future.