strtoll is declared/defined in bson.c, should probably be moved