add strtonum.c from FreeBSD's libc/stdlib/
add option handling
[wip]