I think this website could give you part of the answer.
http://linuxmafia.com/faq/Admin/ld-lib-path.html
Note: It does mention that the solution is harmful, but sometimes you got to do it in order to make things work right?
Anyways I THINK to solve your problem you would have to do this:
$ export LD_LIBRARY_PATH="path_to_where_your_files_are"
But I'm not too sure, I had a similar problem and this solved it.