Previously ioctl was declared as a macro in lwip/sockets.h. Disabling LWIP_POSIX_SOCKETS_IO_NAMES removed that declaration. This adds sys/ioctl.h file and the missing declaration. Also adds missing includes in vfs.c.