Remove unused stuff.

(Mostly leftover support stuff for software rendering.)

Clean up EF_* and RF_* definitions a bit.

Clean up ugly preprocessor platform-detection code and centralize into one place.