Fix compilation errors in gcc 4.8

- Commas after last enum member
- Classes with virtual methods but no virtual destructor
- Unused variables