MAMA: Improve function registration macros.

Fix some issues with the function registration macros, including
improving the logging, and supporting dropping out when a required
function cannot be found.

Signed-off by: Damian Maguire <dmaguire@nyx.com>