Fixed the compatibility to the (Open)BSD mktemp

Basically the Problem is that the template is not an optional argument on linux but not on Mac and some BSDs (?).