Ensure that linking works when pulling in libgcc.a. Added some linker flags.