Backport three patches, add one for GCC14, and add Alpine time_t patch for musl. Signed-off-by: Rosen Penev <rosenp@gmail.com>