fix handling of EMCC_LEAVE_INPUTS_RAW