Add Windows ctime_r implementation and add empty ioctl.h header