Matt Pettis (mpettis): Make mktemp work on OSX, which requires a temp file template, rather than Linux, which makes it optional.