Windows build fixes. Create library link depedency chain.