ioctl: Fix compilation error on mingw. * lib/ioctl.c: Include <windows.h>. Also reported by Ray Satiro <raysatiro@yahoo.com>.