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