Fix win32 compilation by removing macro 'max' if already defined