Apply patches to work with Deimos.