Added a patch to bypass the linking problem

Now some undefined declarations in libpthread