Small changes.

Probably should have committed these at the time. Mostly tests and
removing XNA detection.