Fix some compiler warnings/errors.  Error in llinventorymodelbackgroundfetch was introduced by partial commit.