cast: new limited cast package inspired by Jan Engelhardt's libhx.