Revert "Don't define min/max in windows.h, this leads to compilation issues"

This reverts commit 950d6cb666875f1fd1fbc160da12b96c5d05d26b.