Added dup and dup2 in nt module

Fixed pipe, so the file descriptors returned by os.pipe are consistent with file_no() of files created with open.
Added dup and dup2
Fixed os.read, it used to block on pipes until it was closed