Security and build system fixes
This patch contains several fixes found through the OSS-Fuzz project fuzzing, increasing the security of the library, as well as some fixes for different build systems.
This patch contains several fixes found through the OSS-Fuzz project fuzzing, increasing the security of the library, as well as some fixes for different build systems.