fix build break again. Make pragmas conditional on compiler version