Fix <windows.h> compatibility bug

Drop max() usage