Fix export symbols for win32 compilation.