Fix declaration of mkstemp/mkstemp64 on Solaris.

Might also be required upstream.