Remove affinity hacks

See https://github.com/chocolate-doom/chocolate-doom/issues/484.
Minor changes to compile on OS X

Thanks to @sneakernets.