Add sys/filio.h and fix up some other headers