Added 1.02 (kode54's) portability modifications.

With this attached patch I am simply joining together kode54's modification to this source. Since your repo comes off easily when googling about ciso, so hopefully you will incorporate this change.