Compiling Adafruit_LittleFS - semaphore type missing

Seeing as Particle don’t want to expose littleFS to users and I need a fail safe file system for SPI Flash -
I am trying to build the Adafruit_LittleFS for a SPIFlash. I get the following errors which are related to FreeRTOS missing semaphore definitions. Could someone point me towards a missing include?

In file included from /Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp:27:0:
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:88:5: error: ‘SemaphoreHandle_t’ does not name a type
SemaphoreHandle_t _mutex;
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:91:5: error: ‘StaticSemaphore_t’ does not name a type
StaticSemaphore_t _MutexStorageSpace;
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h: In member function ‘void Adafruit_LittleFS::_lockFS()’:
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:81:45: error: ‘_mutex’ was not declared in this scope
void _lockFS (void) { xSemaphoreTake(_mutex, portMAX_DELAY); }
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:81:54: error: ‘portMAX_DELAY’ was not declared in this scope
void _lockFS (void) { xSemaphoreTake(_mutex, portMAX_DELAY); }
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:81:67: error: ‘xSemaphoreTake’ was not declared in this scope
void _lockFS (void) { xSemaphoreTake(_mutex, portMAX_DELAY); }
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h: In member function ‘void Adafruit_LittleFS::_unlockFS()’:
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:82:45: error: ‘_mutex’ was not declared in this scope
void _unlockFS(void) { xSemaphoreGive(_mutex); }
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.h:82:51: error: ‘xSemaphoreGive’ was not declared in this scope
void _unlockFS(void) { xSemaphoreGive(_mutex); }
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp: In constructor ‘Adafruit_LittleFS::Adafruit_LittleFS(lfs_config*)’:
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp:44:15: error: ‘varclr’ was not declared in this scope
varclr(&_lfs);
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp:47:3: error: ‘_mutex’ was not declared in this scope
_mutex = xSemaphoreCreateMutexStatic(&this->_MutexStorageSpace);
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp:47:47: error: ‘class Adafruit_LittleFS’ has no member named ‘_MutexStorageSpace’
_mutex = xSemaphoreCreateMutexStatic(&this->_MutexStorageSpace);
^
/Users/wjsteen/Documents/Intelligent_Furniture_Project/VSC_Projects/littleFS-test//src/Adafruit_LittleFS.cpp:47:65: error: ‘xSemaphoreCreateMutexStatic’ was not declared in this scope
_mutex = xSemaphoreCreateMutexStatic(&this->_MutexStorageSpace);