Added -lkrb5 to the linker flags.