Also builds on i386, alpha, G3/G4, and sparc.
lib/arch. This should make porting easier. Will probably continue to refactor a little more, moving platform dependent event handling stuff into lib/platform.