Allow fdzopen() to detect magic bytes as well in the stream of the file descriptor.  Note that this does not work if reading from a pipe or socketpair as it is not possible to reset the reposition of the file descriptor. Today it is impossible to use fdzopen in a pipe.