win: Add defines of JOB_OBJECT_XXX
mingw32 doesn't have JOB_OBJECT_XXX defines. Also required limits.h for INT_MAX.