Workaround for window min/max macros