build: explicitely link against $(BSON_LIBS) in tests if on GNU ld.

Technically most GNU ld versions don't need this, but Ubuntu 12.04 does.