Fixed minor issues found by cppcheck
Bit shifts are no longer used for doing multiplication and division
Object extradescs are no longer omitted when loading from xml
Fix more minor errors found by cppcheck
Replace MIN and MAX macros with gcc-only typesafe versions
Merge pull request #227 from dlowe-net/fixed-lint-warnings

Fixed lint warnings