define __STDC_LIMIT_MACROS before first  <stdint.h> include

 define __STDC_LIMIT_MACROS before first  <stdint.h> include
Otherwise they cannot defined later