Fix dependency specifications to use ^ instead of ~.