Handled more Coverity issues

A lot of them are overkill imo.  For example, checking every
ftell/fseek etc.  Even checking malloc all the time seems overkill
unless you're writing system critical stuff.  Also some things
are false positives or not really problems just notes, like:

misused comma operator, left sub-expression has no side effects
and is thus dead code.  Since I'm using my BINARY_OP macro
that's what happens.  I'll have to write a special macro
just for the comma operator to fix that