Merge paul/ospfd/201012-review ospfd and lib/ fixes and performance improvements