compiler: Add support for objects build directory.
lang.c.gcc: Link with libgcc statically when static linking is enabled.