[FreeBSD]: fixed static build