mkmf: refine demo dependencies