add patch for buffer.h
add missing regression test for #34
fix patch
add note for windows user