unix compilation fix