Fixed compilation issue with non-static classes containing extension methods.