Only use OpenMP if found.

Also return error on failure.