Fix cmake path finding for amd libs.
There is no WIN64 defined in the environment.
Merge pull request #1023 from pengx17:2.4_fix_amd_path