build: Fix permission issues caused by incompatible library versions