Add #if guards around openmp so OSX build works