[SDL2-2.0.4] Error while trying to build the library

Hello all, I have been working on a C Api for back-end support to a
game engine. However , i decided to keep the SDL2 Source, to build as a
build step before compiling the library, so that SDL2 will be built to the
specified platform, however, im trying to replicate the build steps in a
script, and i came into an error:

#error Need thread implementation for this platform.

I am running Mingw32, gcc version 4.9.3 on Windows 7 x64-bit. Am i missing
something from a mingw library ?