Kerberos lib: make the code compile with both Heimdal and MIT versions. Heimdal flavor is not tested yet, it is presently used on cygwin only. Add pthread library to target libs of kerberos library test executables to fix [intermittent] link failures on cent os 5.