fix check_gmock in configure