Re-add global application instance

This was unintentially removed in c80861.