fix build issues on windows, use ini api to change session settings