fix compile errors in gcc for indexedarray