Fix detecting of Windows platform