[SPI-1992]: set VALGRIND_LIB depending where shared objects are See merge request !951
mentioned in commit 1ba2a3dc
mentioned in commit 23c8d662