Adds std::function support in CCCallFunc

And fixes some minor issues on the iOS and OS X projects
enable C++11 in tojs
Merge pull request #2727 from ricardoquesada/callfunction_cplusplus_11_bis

Adds std::function support in CCCallFunc