set rpath properly