Improves GoogleTest and system thread library detection and usage