configure: make mktemp call hopefully more portable