MakeMaker.pm: link to pthread to fix various build failures
CompileTest.pm: clean-up cc command