posixcompat: add non-standard GNU function 'timegm' (inverse of 'gmtime'). This implementation is borrowed from musl libc (MIT licensed).