Hi Sergio,
Are you sure this problem is not postgresql installation related?
I saw an error like you are reporting once a time in a postgresql list about installed postgresql from source and linkage from libecpg.so with ssl. Sorry I dont remember where...
If youre running postgresql from source try a solution to add LD_LIBRARY_PATH to your env (if you didn't done it yet) before loading nspostgresql. You can either use a shell script similar to this.
export LD_LIBRARY_PATH=/usr/local/pgsql/lib:PUT_YOUR_OTHER_PATHS_HERE