RTC buildfix (but not sure)

Attempts to workaround missing gmtime on win32/Android and tm_gmtoff on win32.  Tests fail, though, but at least it builds and runs without segfault.

Not tested on Android.

-[Unknown]