TS-2607: Fix broken linking case for Ubuntu 10.04

(cherry picked from commit 17f680231a36fecb703cde36f71b213ff755d44e)