AR 4.2 compat

Hi,

Here's an initial pass at 4.2 compat - I probably missed a few details, but it's a start ...

- Lourens