Use cmake to detect and set openmp flags if available.