added sys/types.h include to buffer.c