thirdparty: Fix boost build for arm64-v8a, x86, and x86_64