thrift: fixed compatibility with FreeBSD