Fixed compiler errors for MLSampling.C