Fix get_fdmax on Windows