Fixed broken dynamic linking on Windows.