Fix windows build

Some variables in recent modifications of windows pipes were not marked as extern.
Because of that, they were declared as ooc variables in the module's load function and used in other functions, causing C errors.