Properly resolve symbols with the global-scope operator