Replaces strcmp by memcmp for when comparing two mac addresses.
Fixed compilation warnings.