Add definition of strtoimax and strtoumax plus needed declarations.