Compile fixes for Mac OS X

Improved support for pause/resume when locking screen on Android

Disabled lots of debug text