Some fixes in dependency installing.