Key by lowercased spec names.

This makes sure case differences in sources do not lead to bugs in
compiles outputs (duplicate entries are considered bugs by pip, and lead
to failure).