Updated to deal with FreeBSD headers with respect to va_args