Fix for build issues on OS X 10.9 and 10.10

This fixes build issues for Python 2.7.X on OS X 10.9 and 10.10 (tested on 10.10 but should work on 10.9 also).