Made mktemp compatible with OS X
Minor update of configure.sh script

- renamed the function responsible for creating temporary files