Safeguard for systems not supporting STREAMS

Recent Linux systems don't support STREAMS, but have the flag #ifdef HAVE_STROPTS_H leading to a compilation error when trying to reach <stropts.h>. The following safeguard tests explicitly the presence and support of STREAMS and uses <sys/ioctl.h> as a replacement.