Fix CPython build problem with Readline 6.3

Add some patches for CPython 2.6, 2.7, 3.1, 3.2 and 3.3 to fix build error with Readline 6.3. This should fix the issues reported in #126 and #149.