Ert 611 ecl sum end date

Changed ctime implementation; return type from C functions is now c_long instead of time_t. The main purpose of this change was to fix an issue time_t values after the 32 bit limit; which previously rolled over.