Hacks to make mt-imager compile