cc-wrapper: Use MacOS compatible mktemp command
The commit 6f2b3ba027f0d74614ba1b21f15ea45b0beb0385 introduced a
`mktemp` invokation that uses the `--tmpdir` flag, which is not
available on MacOS.
This changes the invokation to a portable one based on the following
StackOverflow answer https://stackoverflow.com/a/31397073/841562 .