gustafn
committed
on 11 Jun 07
improve portability