Fix linker errors on Windows.

Submitted by Doug McCorkle.