fix omp crash due to #pragma single in gyroAverage
include global variable for signal handling