Fixed errors in configure.ac (was checking for new_line wrong), added check for random_number(), tested dist on metis.