DLL-ized for windows buid