Use ENV var to disable version logging of used libraries

Related with #2119 and #1859