Travis ci build windows and fix for setenv not being avaiable on win32