Fixed portability problem on windows.