fix compiler warnings

fixed various compilation warninsg for slc6. Identical fixes are already in 7XX releases
  - missing virtual destructors
  - explicit type conversions