Fixed IM installation in Ubuntu 12.04 EC2 images.