Added CC_FORMAT_PRINTF(x,y) macro to warn on CCLog() format errors

Uses printf format. Enabled for GCC and clang. Fixed resulting warnings for all platforms.