Use OSX-compatible mktemp

Just another OSX tool that doesn't work properly :).