add posix threading patches, fix gdb make install by adding an eval