GCC compilation fixes.
Remove a few Coverity issues.
Remove unused field.
:lipstick: