fixed some linking issues with tests on Windows