I really think that with the exception of krb5_cc_gen_new and a few other things like that, the MIT branches of the openssh code would also work for Heimdal. I may be wrong though.