export functions
Merge pull request #3524 from minggo/master

fixed compiling errors on win32