Digging around the distutils code a bit it seems like the way to do this is actually a combination of `sys.platform` (mostly for Windows, OS/2 EMX still uses gcc) and `sysconfig.get_config_var("CC")` for all UNIX/POSIX things.

Not pretty but I think it should make matching the compiler expected by distutils.