Stub windows platform detection in spec tests