Fix for buffers with MSVC
Merge pull request #121 from izaid/buffer_fix

MSVC buffer fix