Make it compile with Clang
Support new OpenEXR range option