windows need to test exported functions

- Export refuses to work for static variables
  in function scope so put the variables in structs.
workaround Bug 3956 - Optlink strips leading underscores...

...except for the first one