Wine would be a much better example of fair use. It is explicitly made to allow users of linux to run programs written against win APIs. It is not so clear in the Oracle vs Google case, because it is questionable whether Google’s case was really fair use (google pretty much didn’t want to pay Sun for the mobile license and the whole thing was done as cost saving) - hence the very long timeline of the case.