compile fix for some gccs
various fixes
use MONOTONIC time to sync multiple instances