cmake and libaio patches