Add 3rdParty libraries
Refactored settings of win build
Define the win main function