removes '--enable-kaapi' flag