make MgRectCALayer draw a capsule, as that's what CGPath supports
fix build when prefix headers disabled
first cut at mapping transitions to CA animations, not great