Use correct return codes from mac CCApplication
Merge pull request #6372 from twhittock/mac-application-retcodes

Returns correct value for Application::run on Mac platform