do bdiff project mor portable
add only bpatch to distribution
correct prototypes and do necessary code changes
use sizeof buffer array insteed of fix value
remove some redundant or unused macros from build make files