Linking type solutions for elliptic equations with indefinite nonlinearities up to the critical growth