fixed compile errors

* from_c_str -> from_buff
* static -> const