See below for possible errors and solutions.
If you want more control, instead of using custmbuild,you can do a manual compile.
We'll use exim 4.80.1 for this example. Change all occurances of 4.80.1 to the version you want to use.