Fix windows build

This routine is now used in the gssapi library and must be exported
as such.

ticket: 7688