Ensure that old threads library will be used

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