os_support: Choose between direct.h and io.h using a configure check