Merge pull request #525 from pijyoi/master

remote_thr.cpp: port pthreads usage to win32 api
Linux build fails due to undeclared variable
Merge pull request #526 from breese/master

Fixed Linux compilation problem