Add compatibility with Ubuntu Precise.