Adds std::function support in CCCallFunc

And fixes some minor issues on the iOS and OS X projects