build: some build fixes for OS X 10.6
cbson: fix test for python2.6.