Make cmake module search case-insensitive.

This is needed to make things like "-f Win32" work, and matches the non-cmake
behavior.

[#276 state:resolved]
Fix a few more cases of case sensitivity in module handling.