C89 fixes - code needs to be C89 compliant for Xbox 1/ Xbox 360
and QNX