FreeBSD improvements
Report errors when failure
FreeBSD needs time.h