Improve composer dependency resolving.

This way composer can build the dependencies quicker.