use general toc code on darwin

This compiles fine, but I can't actually test it in my VM,
since Mac doesn't accept my CD drive at all.