fixed sp boot in bdb
blsgen: fixed IP/SP binary mapping and writing. fixed bug in mdconf node copy, fixed bugs in libs