Added 1.02 (kode54's) portability modifications.