Added utility functons for platform checking