I do not think it can be safe to define that in ld.so.conf because you are mixing libraries. If the program use first the incorrect one it will not work. But as a workaround... ok