Moved the select() example into its own file so main.c could be used.