Make pattern matching of platform case insensitive

Also renames pM* (e.g. pM32) to p* (p32) as they are not
really MINGW specific.
Enable cross compile for OSX