Unfortunately, I don't have any idea. My library versions are exactly the same as yours and I could compile the source code from main without problem.
Are you using the main branch or another branch? Could you try with fresh install in a virtual machine like virtual box if you can reproduce the problem?