Only compile source sampling if MOAB is found.

Addressing #493. I think this should fix it but I have not tested this. I can confirm tonight.