adding a check for __NO_OPENMP__ so the code compiles on mac 10.9.5