Integer inferrence is stripped even more
.with_ref(...) is deprecated, change to .as_ptr()
Call as_ptr later on

Potential issue could occur when the CString was freed before the pointer usage
Merge pull request #133 from mvdnes/int_asptr

Further changes to inferrence + deprecation warning