Migrate to libcaf