Fixing Buffer class bugs
Changing cstdint into stdint.h to work with AVR compiler (because it only has libc)