cmake: link webcore against thread lib