Change OPENMP macro to _OPENMP which is automatically defined when compiling with OpenMP.