Changing cocos stuff from NDK calls

Introduced methods to change anything you like to change from NDK call,
on Android its threaded and on ios it isn't.