changed __APPLE__ macro check to address vc++ specifically