Fix wrong alignment of data in buffers
Merge pull request #68 from tomaka/fix-buffer-align

Fix wrong alignment of data in buffers