[z2029] Apply ACE patches for FreeBSD

(based on commit ef79a25)

Signed-off-by: Nighoo <nighoo@overninethousand.de>

(based on commit [s1641] - e2ed112)