update to new rust compiler
Remove again as_imm_buf and replace by to_c_str().unwrap().