Mac OS X cmake compatibility.

Hi,

I've fixed the if condition for the Windows check, because cmake fails on the AND condition.