NRPE - Can't get NRPE to compile

I’m trying to install NRPE 2.7 on Nagios 2.7 so I can monitor some Windows boxes.
I cannot get NRPE to compile correctly. I’ve searched and found a post of someone else having the same problem but there were no answers to the posting, so I’m going to try.

I’ve installed OpenSSL 0.9.8e, and when trying to compile NRPE 2.7 I receive this:

make all

cd ./src/; make ; cd …
make[1]: Entering directory '/home/nagios/Download/nrpe-2.7/src’
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/ssl/lib -lssl -lcrypto -lnsl
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function ‘dlfcn_bind_func’ :
dso_dlfcn.c:(.text+0x2e5): undefinded reference to 'dlsym’
dso_dlfcn.c:(.text+0x3c6): undefinded reference to ‘dlerror’
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function ‘dlfcn_bind_var’ :
dso_dlfcn.c:(.text+0x451): undefinded reference to 'dlsym’
dso_dlfcn.c:(.text+0x52d): undefinded reference to ‘dlerror’
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function ‘dlfcn_unload’ :
dso_dlfcn.c:(.text+0x593): undefinded reference to ‘dlclose’
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function ‘dlfcn_load’ :
dso_dlfcn.c:(.text+0x667): undefinded reference to 'dlopen’
dso_dlfcn.c:(.text+0x6d8): undefinded reference to 'dlclose’
dso_dlfcn.c:(.text+0x71d): undefinded reference to 'dlerror’
collect2: ld returned 1 exit status
maek[1]: *** [nrpe] Error 1
make[1]: Leaving directory ‘/home/nagios/Download/nrpe-2.7/src’
*** Compile finished ***

I would appreciate any assistance.

Thanks,
Subby