Compact almost automorphic solutions to integral equations with infinite delay