Small fixes for the ecp case.

These fixes orgin from making freeradius_ecp start working.