HPCC-11469 Add gcc -Wparentheses

And remove some harmless warnings, mostly to remove potential
confusion over nested if else's.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>