Minor fixes in the bmap library.