fixed linking of bsondemo #655