Merge pull request #3 from cocos2d/master

merge from cocos2d-x
fix CCScale9Sprite bugs when parsing rotated spriteframe from plist file that texture packer generate.
[Linux] add cache for font family -> font path mapping

As FcFontMach is quite an expensive call the results of getFontFile() are
now cached in an std::map if either a ttf file is packed with the app or
if a font file has been found by using fontconfig
Merge branch 'master' into feature-linux-fontcache
fontcache map is now static, as we do not need external linkage for it.
Add an environment variable to give the developer an option to disable apt-get usage

After the introduction of the "set -e" option, the build script fails on non debian/ubuntu linux distributions.

This is a quick fix to allow the users of distros other than debian/ubuntu to build the library, not a definitive solution.
The COCOS2DX_USEAPT environment variable can be set in the user shell config or used directly in
the command line: COCOS2DX_USEAPT=false ./make-all-linux-project.sh
Setup user environment for building Android port.
Android build_native.sh now reads local.properties for environment variables
fixed #1836: JS target of "cc.Scheduler().scheduleCallbackForTarget" should not depend on CCNode or its subclass.
Reverting ccarray_to_jsval.
Merge pull request #2177 from dumganhar/iss1836-jsb-scheduler

fixed #1836: JS target of "cc.Scheduler().scheduleCallbackForTarget" should not depend on CCNode or its subclass.
fix crash in CCBReader::readFloat()
Merge pull request #2180 from fins/master

fix crash in CCBReader::readFloat()
[WIN32]Fixing compilation errors for TestJavascript and WatermelonWithMe.
Merge pull request #2181 from dumganhar/master

[WIN32]Fixing compilation errors for TestJavascript and WatermelonWithMe.
fixed #1642: Cxx-generator now works ok on windows, it uses the same config file as unix. For details, please refer to README file.
fixed #1642: Updating genbindings.sh, adding empty variable `extra_flags`.
fixed #1642: Renaming `extra_flag` to `extra_flags`.
Adding dos2unix.exe
Adding ._.XXX files to ignore file.