Fixed single-application instance issue

`const` variables, declare `extern`, put it in a .cpp. said it a few times already...