Changed String::toInt() to use a standard function

Changed ```String::toInt()``` function to use ```wcstol()``` which is compliant with POSIX rather than the self-implemented one.