Added __attribute__(__format__()) for CCLog and CCString

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