fixed duplicate object file warnings on Windows