issue #4277 : Refactor codes to support compile.
Merge branch 'develop-3.0' of git://github.com/cocos2d/cocos2d-html5 into iss_4277_fix4release3.0
Merge pull request #1660 from SmallAiTT/iss_4277_fix4release3.0

issue #4277 : Refactor codes to support compile.