Add shared alloc routines, use 'global' prefix for global allocation routines. Keep hooks with and without params in the same list.