Making some code compile on both release and debug builds because it's necessary to be able to pause games correctly. Fixes APP-2206