I started trying to implement my idea and decided it was too much work, with too much potential for bugginess, for a piece of code which is only going to work around old buggy glibc versions. So I'm just going to take your patch and adjust the comments a bit. Thanks again.