rewrite xtime_get in terms of get_system_time to ensure clock consistency, and fix Borland test failures