Fixed compilation errors while no HAVE_POLL is set