Problems with compiling Ardour 2.8.13

Hi to all. I`ve got this error. Maybe someone knows how to cure it?)

libs/fst/vsti.o: In function stop_midireceiver': vsti.c:(.text+0x6b1): undefined reference topthread_join’
libs/fst/thread.o: In function wine_pthread_create': thread.c:(.text+0x11c): undefined reference topthread_attr_getstacksize’
collect2: выполнение ld завершилось с кодом возврата 1
winegcc: g++ failed
scons: *** [vst/ardour_vst] Error 2
scons: building terminated because of errors.

close the topic. its compiled. ive just added to jack.pc following words:
-lpthread -lrt

My english is very bad, sorry, have the same problem that cnuptak:

libs/fst/vsti.o: In function stop_midireceiver': vsti.c:(.text+0x6b1): undefined reference topthread_join’
libs/fst/thread.o: In function wine_pthread_create': thread.c:(.text+0x11c): undefined reference topthread_attr_getstacksize’
collect2: выполнение ld завершилось с кодом возврата 1
winegcc: g++ failed
scons: *** [vst/ardour_vst] Error 2
scons: building terminated because of errors.

But can not guess where change the of " its compiled. ive just added to jack.pc following words:
-lpthread -lrt"

¿Where change line “-lpthread -lrt” ? ¿Where this the file “jack.pc”?