Custom PHP 5 "imap" Problem

I’ve been searching the forums for a few days now and I still can’t find a solution to this problem. I’ve tried every single PHP 5 compiling script here and none of them work for me. Each time I run the script I get this error:

osdep.c: At top level:
osdep.c:270: error: storage size of ssldriver' isn't known make[3]: *** [osdep.o] Error 1 make[3]: Leaving directory/home/.drummond/retryco/forums/source/imap-2004g/c-client’
make[2]: *** [lnp] Error 2
make[2]: Leaving directory /home/.drummond/retryco/forums/source/imap-2004g/c-client' make[1]: *** [OSTYPE] Error 2 make[1]: Leaving directory/home/.drummond/retryco/forums/source/imap-2004g’
make: *** [ldb] Error 2

I’ve no idea how to get around this problem. After each attempt I’ve cleared the previous installation and I have a phpinfo page setup here:

Can anyone help? Thanks =)