added check for openmp support

This is to fix issue #246 with openmp support