Don't worry about CHANGES, it fails because I've generated my patch against the current CVS tree and not the latest release - and there have been some other changes since then.
The attached patch (the important chunk is at the end - the configure.in modification) should fix this problem (and hopefully continue to work even of selinux-enabled systems).
Stelian.
I cannot see any other possible problem except the open/OPEN thing. Please double/triple check that you applied the patch and that you're using the patched version in your tests...