Compiling MySecureShell on SCO 6.0

I downloaded the source, vsn 1.15 from SourceForge, and ran configure, and then tried make.
I got the following errors:

I tried fixing it by setting LD_LIBRARY_PATH to /usr/lib, and by adding -lsocket to the CFLAGS in the make file. But this made no difference.

gethostbyaddr, gethostbyname and inet_addr are all in /usr/lib/libsocket.so

---------- Post updated at 10:18 PM ---------- Previous update was at 07:58 PM ----------

I adjusted the Makefile, and eventually it compiled clean. There are some directory differences as well; I edited one of the header files. I also had to modify the default sftp_config file.