Use static version of the test library.

This should fix a link error on visual studio.