Small-molecule factor B inhibitor for the treatment of complement-mediated diseases