add a few more global includes
update clipping asserts to reflect possibility that startB is less than startA