Platform detection helpers