fixes for g++ compilation of OpenMP backend