Better support for custom uClibc toolchains

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>