try to use a system compiler if using our clang fails to build the native optimizer; fixes #2997