Fix compilation with MessagePack.