Fix use of typedef for FreeBSD