add get_mac for linux.
fix minor bug for clang