This is not the correct fix but a temporary one, this allow us to compile on freebsd while a better fix is in the works.