Added windows compatibility to File implementation