updated the makefile with rpath for simplified .so usage