Fix OpenMP lookup, enable usage of config tests in external CMake projects.

Revert aa1f10f5, which breaks internal OpenMP search; update add_hpx_config_test so that it works properly for external CMake projects. Test-cased against trunk and the external CMake example repo.