Merge pull request #191 from natural-law/develop

Make console be compatible  with Cocos Framework.