CMake: Fix linking trojita executable under MinGW

REVIEW: 112374