It could be compatible with Linux, since if its officially compatible with OSX. But I don’t know if/how Linux will support the side wheel. AFAIK Logitech has one single mouse (the M560, IIIRC) which is Windows8±only (some buttons send a keyboard sequence which is understood only on Win8+).
I used to have the MX Anywhere. Good mouse, but eats batteries fast (a pair of AA batteries per month). The MX Master works on rechargeable batteries so that could be better. The MX Anywhere also worked on glass as advertised, but didn’t work on some fairly frequent surfaces (wood) that are no problems for other mice.
I currently use the M705 Marathon (Lenovo T430+Ubuntu 14.04). Battery life is infinite (a pair of AA per year…). Doesn’t work on glass or very shiny surfaces (such as the enameled sheet table I am typing this on) but works decently on a regular desk. The wheel can be pushed sideways (cue the “<>” symbols on the sides of the wheel) for lateral scrolling and in many UIs the wheel scrolls laterally when there is no need for vertical scroll.
Otherwise order from Amazon, try, return…