Fixed building on FreeBSD after last commits