Phonon induced instabilities in intermediate valence compounds