BLD: split id_dist fortran subroutines less

Reduce the number of produced files in `id_dist`.

I have tested that it still builds on Windows with g77 also after this.