Add support for custom illumos-gate patches