added -rpath linker flag