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 (?).
Merge pull request #3 from lukasepple/patch-1

Fixed the compatibility to the (Open)BSD mktemp