Import upstream change to fix build with gcc 13 and drop gcc 7 requirement
The Open Build Service is an openSUSE project.