fixing detection and use of libgtest-dev