I am using cygwin to compile the Tesseract 3.03 source code.
The following error is encountered when I run make after configure. I have no knowledge to modify the Tesseract source code. Anyone saw this error before? Or is there any prebuilt version of Tessearct 3.03? I need this very version because it contains the training tools text2image and they claim it can be built with make training.

ADD 1
Below is the code snippet in trouble.

It seems to me the select function is a C++ library function. Maybe some library is missing on my Cygwin installation. But I am not sure which one.
ADD 2
Following rubenvb's suggestion on this thread:Error during making "xz-5.2.1" with MinGW/MSYS
I start to use MSYS2 + MinGW-w64 to compile Tesseract 3.03. After fighting through all the dependencies and pre-requisites. I finally successfully configure the Tesseract 3.03 source. And then encountered the following error during make:

I found a similar thread: fatal error: strtok_r.h: No such file or directory (while compiling tesseract-ocr-3.01 in MinGW)
It seems I need to manually add some file to the tesseract source. But I am not sure where to place it.
For now I need to take some sleep.
Hope someone could shed some light on this issue. I will continue with it tomorrow...
Reference
Compile Tesseract 3.03 with vs2013
http://vorba.ch/2014/tesseract-3.03-vs2013.html
Compile Tesseract 3.02 with Cygwin