win: Add defines of JOB_OBJECT_XXX
mingw32 doesn't have JOB_OBJECT_XXX defines
win: Fixes build
mingw32 require  limits.h for INT_MAX