Attempt to make OpenMP detection more bullet-proof (issue #125)