[build] automatically determine libgcc dir. Note - this is a change of behavior since the thumb version is not selected. However, this is more future proof as the version is always correct