Made changes to shared_and_replicated_distribution to get it to compile with the cray compiler.