Add target link library. Fix fortran indexation.