remove ct_api.h includes, added gcc support