Also find Gtest dynamic libs

We search for any gtest lib format, with a preference for static libs when available.
This should preserve any old behaviour, and allow to use packaged gtest dynamic libraries.