Added dependencies to Makefiel.PL and switched from tmpnam to File::Temp