Rural Glenwood City man dies in farm machinery accident