added FreeBSD and time zone support