Expand ctypes warnings to warn about *int/*uint

Also ends up fixing one case in libstd
auto merge of #7734 : alexcrichton/rust/issue-3395, r=sanxiyn

Also ends up fixing one case in libstd. 

Closes #3395