Need to declare before `NPY_BEGIN_THREADS_DEF;`, which has an empty statement before`;` and makes this declaration after a code statement. This is an error on windows also.