Adapt for windows.