Fix flags parameter for BSD mkostemp(3).
Merge pull request #240 from kuriyama/mkostemp-fix

Fix flags parameter for BSD mkostemp(3).

Patch by Jun Kuriyama. Thanks!!!