Tests: Ensure Solaris linker never sees empty contents
Fixes the following tests on Solaris builds:
- wrapping
- qtwrapping
- CMakeCommands.target_link_libraries
The problem is apparently a well-known one for Solaris. The linker does not like linking in a library which has no symbols (e.g. see here).