Fixed compiler errors in FreeBSD