fix usage of windows global symbol for local function