TS-2607: Fix broken linking case for Ubuntu 10.04