Changed the type of HANDLE to int for UNIX file descriptors