Fix dependencies for Ubuntu 12.04