Reduce BufferSegment size. 
Hand-eliminate tail calls in free link functions
Fix compiler warnings