Information about this function is provided here.
after more digging, I find out that the 32bit version of the mingw64 doesn't have this function while the 64 bit does.
Edit2: I did a patch job to cmake after researching old posts concerning this, it's compiles and runs and all, by forcing it to compile for 32 bit version. It's bit counter intuitive to have people download the 32 bit verison of mingw when it doesn't have the function requires for it. I'm using tdm version of it btw.
What libraries in mingwlib need to upgrade to 64 bit? As is it stands not having it is creating issues, as the mingw64 32bit doesn't have the necessarily functions to compile spring(From the current compiler that I have anyway)