Fix when using static library on win32 environment