fixed an issue with vaargs
changed how cocos defines CC_TARGET_PLATFORM to avoid TARGET_OS_IPHONE==0 as being read true