Make static test library linker hack a bit nicer.