Some versions of OpenSSL (notably those that come with most Linux distributions) are linked against Kerberos libraries. This means that you need to setup the build environment to point at the Kerberos files as well.