Add support for midgard-portable