Add OS X support to the pre-auto-gc example hook