Added include of stdint.h for uint8_t on linux and two functions to obtain number of buffered frames