On calculating the electron-phonon mass enhancement lambda for compounds