Fixed ifai.hpp using C-pointers