rawspeed: imported upstream r573 (thanks klaus)