You must include <minirpc/minirpc.h> in order to use the protocol-independent API.
<minirpc/minirpc.h>