add build script for win32 and build as DLL.