fix sh build regressions in asm