Preliminary port by Peter Valchev and me. A few details to fix, such as having SDL sound AND using timidity concurrently...