Fixed int_max undeclared problem on widnows