Fixed non-virtual destructors warnings.