Hacks to make mt-imager compile

It wasn't compiling on my machine until I made these changes.