Fix test link errors on Windows. Tested on Windows 8 with VS2010.