fix DLL export error on Windows