Fixed issue #1448: Fix compilation of TortoiseMerge by not linking unused libraries