Lot of compilation errors in maixduino examples

Hello, I’m using a Maixduino board with Arduino IDE 1.8.13. Trying to upload the selfie.ino or the mobilnet_v1.ino causes multiple errors from the lib Adafruit_BusIO/Adafruit_SPIDevice (1.7.1 version) like those :
In file included from C:\Users\alain\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp:1:
C:\Users\alain\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:62:22: error: ‘BitOrder’ has not been declared
BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^~~~~~~~
C:\Users\alain\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:67:22: error: ‘BitOrder’ has not been declared
BitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^~~~~~~~
C:\Users\alain\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:72:30: error: ‘size_t’ has not been declared
bool read(uint8_t *buffer, size_t len, uint8_t sendvalue = 0xFF);
^~~~~~
C:\Users\alain\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:73:31: error: ‘size_t’ has not been declared
bool write(uint8_t *buffer, size_t len, uint8_t *prefix_buffer = NULL,
Ideas are welcome
Thanks