Getting build.sh error on usleep.not being declared

Getting this error while running .\build.bat.

g++ -I. -Wall -g -Wno-strict-aliasing -Os -DNDEBUG -DTF_LITE_DISABLE_X86_NEON=1 -std=c++11 -c edge-impulse-sdk/tensorflow/lite/micro/micro_error_reporter.cc -o edge-impulse-sdk/tensorflow/lite/micro/micro_error_reporter.oe
dge-impulse-sdk/porting/mingw32/ei_classifier_porting.cpp: In function ‘EI_IMPULSE_ERROR ei_sleep(int32_t)’:
edge-impulse-sdk/porting/mingw32/ei_classifier_gporting.cpp:38:2++ -6I:. e -Wrraorll: ‘usle ep’ was not declare d- ing this s c-Wno-striocpe
t -alias ing usl-Oeep(tsime_ ms * -DNDEB1UG 000);
-DTF_L ITE _ DISAB LE _ ^
X86_NEON=1 -std=c++11 -c edge-impulse-sdk/tensorflow/lite/micro/schema_utils.cc -o edge-impulse-sdk/tensorflow/lite/micro/schema_utils.o
Makefile:102: recipe for target ‘edge-impulse-sdk/porting/mingw32/ei_classifier_porting.o’ failed
mingw32-make: *** [edge-impulse-sdk/porting/mingw32/ei_classifier_porting.o] Error 1

Seems to be an issue with ‘usleep’. Noted that usleep has been deprecated in a stackoverflow post. Has anyone else seen this error? Any workarounds for it?

Regards,
Chris