Update windows

Updates windows implementation to use the windows api CreateFile for compatibility with newer versions of windows