FIX: crash in MacOSX shared lib compilation if on-load/on-unload callbacks not present.