Improve Mix dependency error messages

Closes #1246 and #1247.