strncpy_s error when deploying ffmpeg streaming application on XP-Collection of common programming errors

I’m trying to deploy an application that uses ffmpeg to stream camera output to an XP machine. The application is written compiled with gcc mingw32 and runs fine on Windows 8. But on Windows XP I get the following error:

The procedure entry point strncpy_s could not be located in the 
dynamic link library msvcrt.dll

GCC command, excluding paths:

g++ -o mingw\streamer.exe src\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100

Dependency walker shows the following:

How can I work around this strncpy_s problem? It seems to be ffmpeg which uses this function is msvcrt. I used the windows binaries they provided. I’d rather not have to compile the library myself, as it has a huge set of dependencies.