Dynamic exception specification is not allowed in c++-17. The enforcement needs to be relaxed for the kimg_exr plugin when using openEXR versions older than 2.3.0.