Improvements to HXCPP memory buffer
Merge remote-tracking branch 'upstream/master'