add mac platform detection