Apply a patch from Bertrand to fix warning C4436 from VS
(dynamic_cast from virtual base 'class1' to 'class2' in constructor or destructor )