Fixed linux compile errors.
Added initial Planar/CurvedIdx.