Windows support, bug fix

Fixed: recvver didn't close fout causing rmtree to fail during delfile