win compatibility

mostly handled w/ defines for now