Use the SDL byteswapping functions instead of our own.
Use the AC_CONFIG_HEADERS file directly.

Also rename it to match the HAVE_CONFIG_H preprocessor symbol.
Do a batch of include cleanups.