fix multiple different definitions for 'buffer'

- define it only in sendbuf.c and declare it in sendbuf.h
- add include guard