Added patch for PThreads that allows sharing of contexts via serialization
Courtesy of @krakjoe