needed changes to compile theia on Raspberry pi 4 (running raspbian 11)
This will create a new commit in order to revert the existing changes.