Revive the PLATFORM_GOOGLE code in the ROCm wrappers
Revive the PLATFORM_GOOGLE code in the ROCm wrappers

The ROCm wrappers is basically a hand-written implementation layer library.

We bypass it when `PLATFORM_GOOGLE` is set and just statically link the ROCm
and HIP libraries instead. The bypass code was broken since we didn't use it
for a long time.

So this CL is fixing a bunch of issues with the code and makes it work with
the latest ROCm version.
