OmeroCpp: Miscellaneous fixes

One of the (intentional) changes made when switching to use `cmake` was to enable the same set of strict compiler warnings which are used for bioformats.  There are many problems with OmeroCpp, this PR is just the first of several to correct the most glaring mistakes.  Some are purely cosmetic, others are indicative of design errors, others are real errors.  Combined, they are hiding real issues in the code, so I hope to have eliminated all the more trivial ones soon, making the more serious issues visible.

- Correct a number of compiler warnings (bad syntax, casting, unused parameters, undeclared free functions)
- No functional changes

--------

Testing:
- jobs should remain green

Since the _GE check is just returning true/false it's not possible to reorder unless I make it _LT.  I fixed this up to correct the C-style casts, but a bigger question here is why there is a need for a cast in the first place--at a higher level, the types being passed around are simply not correct.