Move buffer.h to firmware/include.h to replace a useless malloc header.