Add an option to link against static ilmbase and openexr libraries, taking care to link in the proper order so that all necessary symbols are included