Workaround for dprintf compatibility issues in FreeBSD