Include stdint.h for uint16_t explicitly. This was necessary when I was trying to build this natively on Ubuntu. It seems some other headers happen to pull the uint16_t definition by luck on NuttX and macOS.