Oil, ag losses prompt cuts for North Dakota agencies