Also replace %global compat_build 0 with %bcond_with compat_build. This will make it easier to test building the compat version of the package and allow us to add a CI test for it.