Add mktemp

Due to issues with my large batch of changes, I'm submitting the easy stuff separately first.