Fix incompatibility with python 2.6 in setup.py.

sys.version_info.major and .minor were introduced in python 2.7. Using
sys.version_info[0] and sys.version_info[1] instead.