Change tests to use boost dynamic link