Fix IlmBase 2.1 build breakages
(other minor changes are due to syncing with the analogous file in OIIO)
Change some pass-by-value to pass-by-ref, very slight but measurable speedup