fix FTBFS boost 1.83
Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056093
I did this with two patches, as one was taken from upstream and one was created for this packaging. I have not forwarded the new patch upstream, as it does not apply to the latest release there