Set standard file descriptors via fileno.