Made mktemp compatible with OS X

I made configure.sh run on OS X without  failing.