Remove a lot of platform compatibilty stuff

It's either not used, or no longer relevant.
27 files changed