fix osabi checks w/ newer toolchain