Add ABI detection for Gentoo
Merge remote-tracking branch 'upstream/master'