Did you check the content of /etc/fstab under MSYS?
sched.h should be in c:\mingw\include (assuming you installed mingw under c:)
Basic MinGW installation does not have POSIX.
Should I install Pthreads-win32? Maybe something else?
I am Windows programmer and know about Unix very little.