MSBuild task code updated to handle API change in PackageBuilder class

From Benoit Moussaud's feedback