Allow DLL and static library build on Windows.