Ubuntu has backported some code to 3.13, so use correct select code
Merge pull request #100 from mcr/master

Ubuntu has backported some code to 3.13, so use correct select code