Fixed windows linker errors.