Changes for free radius_ecp

These fixes orgin from making freeradius_ecp start working.