* add missing windows header * hold the handle until GC so that the file can't be modified in use, this is a regression when we switched to CreateFile. * set wpath to NULL to avoid double free