Added support to include OpenMP with WITH_OpenMP define.
Improved OpenMP support for Fortran