Fix a couple of howlers in event_hooks, and remove redundant calloc and posix_memalign hooks.