[4.8] libgcc: Improve libgcov portability

Fixes the following issues:
  * Needing the stdio header included in libgcov.c to define stderr
    usage.
  * Defining __errno_location with it's second definition in our tree
    for the __errno_location usage.

This removes the need for additional linking for properly linking
libgcov.a.