Make GetFileLength work on windows