Added MinGW compatibility. MinGW has own pthread implemention. There is no need to use POSIX Threads for Windows (https://sourceforge.net/projects/pthreads4w/) in MinGW.
Authored by: vikas-newtec 2018-03-26
Parent: [r1716]
Child: [r1718]