Fix implicit declaration of ioctl on Solaris

`ioctl` is defined in either `unistd.h` or `stropts.h` on Solaris
and in either `sys/ioctl.h` or `stropts.h` on Linux.

By simply including `stropts.h` we are warning-free on both systems.