Fixed undefined reference to mktempdir