For upstream

These patches fix package ilmbase, on which openexr is based, and add a link test to openexr. Based on these changes, a fixed imagemagick package now also has a link test.