Apply patches to fix test_posix

http://bugs.python.org/review/12655/

---
test test_posix failed -- Traceback (most recent call last):

File
"/home/travis/build/Endle/python-build/code/Lib/test/test_posix.py",
line 1083, in test_sched_setaffinity

self.assertEqual(posix.sched_getaffinity(0), mask)

AssertionError: Items in the first set but not the second:

0
---