Now working reasonably with SDL on linux.