Feature detect openmp

Automatically detect OpenMP flags for Intel or gcc compiler or read the environment variable `OMP_CXX_FLAGS`.