support osx to get mac addr