FEAT: Added support in Mach-o for on-load/on-unload shared library user callbacks.
FEAT: split shared library user callbacks into per-platform definitions.