Add missing function mktempdir