mira: Fix build issues

- Needs expat and flex to avoid a huge ugly patch.