distanceToSegment now returns the fractional projection instead of absolute, also fixing a long standing bug with some macbook gpus