Restored check of <io.h>
Export statements, needed for Win32