Fixed compilation with recent elliptics
Fixed getting path component from url