Fixed undefined reference to mktempdir and removeall