Moved IO_ENABLE to common.h to allow elimmination of pthread lib dependency