EXR 2.0 classes can't be forward declared.
Replaced static var by unnamed enum to fix link error on osx.
Merge pull request #243 from est77/exr2_support

OpenEXR 2.0 fix.
Merge pull request #244 from est77/llvm-gcc_link_error_fix

Replaced static var by unnamed enum to fix link error on osx.