added support for msys2 mingwtoolchains and fix x64 cocos/audio on windows platform for MSVC and Mingw. Also fixed a few very bad type casts very important for future Arm64 bit processors
fixed CCImage for MSVC someone added std:tolower which broke it
removed unneeded directories for Mingw cmake
add miss file for vs-project
UserDefault::setDataForKey on android will cause memory leak
Merge pull request #4438 from minggo/change-long

replace long with int or ssize_t
use Schedule::performFunctionInCocosThread
Merge pull request #4441 from xhcnb/mem_leak_android_userdefault

[ci skip]UserDefault::setDataForKey on android will cause memory leak
Merge pull request #4434 from martell/msys2

Msys2 and Mingw added fixed x64 cocos/audio on Windows for MSVC and MinGW
Merge pull request #4442 from minggo/use-schedule

use Schedule::performFunctionInCocosThread
fix some warnings
issue #2790: Bindings-generator supports binding Vector<T> and some bug fixes.
Merge branch 'develop' of git://github.com/cocos2d/cocos2d-x into iss2790-template-container
issue #2790: Travis-ci builds JSB projects again.
Merge pull request #4444 from minggo/fix-warning

fix some warnings
issue #2790: A typo fix.
issue #2790: Comments building template for android.
Merge pull request #4445 from dumganhar/iss2790-template-container

issue #2790: Fix of JSB project broken after using Vector<T>
[AUTO] : updating submodule reference to latest autogenerated bindings
Merge pull request #4446 from CocosRobot/updategeneratedsubmodule_1386322272

[AUTO] : updating submodule reference to latest autogenerated bindings