cmake FreeBSD fix ( i hate FreeBSD! )