Fixes the following tests on Solaris builds: wrapping, qtwrapping and CMakeCommands.target_link_libraries