fix several warnings
Merge pull request #63 from arturoc/bugfix-warnings

fix several warnings + add virtual destructors to base classes