Fix mktemp on OSX

Should fix #1