sdcc: Update to 3.1.0, add huge-auto-stack for mcs51

Updates `sdcc` to v3.1.0.

Also adds a patch which enables `sdcc` to be more easily used with Contiki.