Add support for statically linking to a specific test