software/stdlib: fix atoi