Removed all trailing spaces.
Trying to find build errors and fix porthacks.h

Main change: _gtfo.
Fixed build errors and hopefully improved porthacks.h

Up until now it didn't compile in Linux: first because I had fumbled a
rebase, then because I thought I had fixed porthacks.h (while actually
breaking it). The rebase doesn't show up in the history.
Game and simple now  compile and run in Linux and Windows.