Fix win build

std::max and win32 max macro