Apply patches to support Deimos.