OpenExr 2 Compatibility

These changes allow Cortex to be built with any of OpenEXR 2.0.0, 1.7.0, or 1.6.1.