fix compile error of examples/bdiff on unix