freebsd and openbsd date fixes