Feature-based conditional compilation?

I think this is the best way to do it.

Previously discussed here: Building rustc on Solaris