make bson_realloc really free memory
use reallocf instead of realloc on OS X
Merge pull request #43 from skaes/fix-realloc-zero

make bson_realloc really free memory