Fix extern bug with DEFINE_GLOBALS.

The old way defined app_context many times, and relied on gcc's lenient behavior to work correctly. This breaks down with Clang on recent MacOS. This one-character bugfix makes it work on both platforms.