Error callback and some fixes in mono distros #5675706715345