Asymptotically linear elliptic problems at resonance