Use static linking for Boost test library when compiling on Windows.