Fix the type judgment of lua value would parse string —> int or int —> string
Fixed compile error with CC_REF_LEAK_DETECTION
Fix error with CC_ENABLE_SCRIPT_BINDING=0

There are too much compile error if I set EE_ENABLE_SCRIPT_BINDING=0.

CCEventTouch and CCTouch related things...
This is temporary fix... Many source/header files must be patched for
the right way..
Fix’ the error that Cocos2dxLuaJavaBridge' was optimized because of usage of LOCAL_STATIC_LIBRARIES on the android
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_fix
Update CCBone.cpp

fix the bone disorderly flying
http://www.cocoachina.com/bbs/read.php?tid-220321-keyword-%C2%D2%B7%C9.html
fix sprite frame cache, and remove unnecessary headers dependencies.

we should add private headers for ccs, do not expose privae headers to users.
revert some modifications.
fix compile error.
fix momery leak (partly fix, memory leak still exist).
Fixed "warning: bundle reader out of range"

This warning was displayed even if it's valid c3b file..
Changed "validLength <= needLength" to "validLength < needLength".
fix #9031
Merge pull request #1 from cocos2d/v3

Updates
Fixed failure in call to make when the android app folder contains spaces in the path.
Remove unused variable from composed include_directories
cmake: protobuf should be linked with cocos2d.a in every platform (not only on linux)
cmake: connect mac specific UIEditBox implementation to build
cmake:
- fix Audio engine build on Mac
- remove duplicated defintions of _EXPORT_DLL_
cmake: Build application bundles on Mac for test applications (this allow run they from Xcode)
Move BuildHelpers.CMakeLists.txt to Modules/CocosBuildHelpers.cmake, this name is more standard for cmake include files, and in future this file can be installed to use by external applications.