Fix porting bug to older POSIXish platforms.