Fix seek issue on Windows