Fix mpool/udreg compilation
Improve error message.