Backport patch to drop GTimeVal usage + more build fixes

Fixes FTBFS with 64-bit time_t on architectures where long is 32-bits

Merge request reports

Loading