Fix linux build for sort_by_key