restore LIBS after checking for gcov