Fresenius buying pharmaceutical firm for $3.7B