Replace obsolete 'string-to-int' to 'string-to-number'.

The function 'string-to-int' is obsolete since 22.1, so I simply replaced it with 'string-to-number'
to reduce compile warnings. (I believe the function was introduced in Emacs 19.)

I'm not sure if some function names including "string-to-int" should be replaced too.