This is more of a WIP of required patches and C{,XX}FLAGS because it still fails to build for x86_64-musl and i686.