Adressed some bugs with OS X

* -Werror breaks on current OS X
* wrong handling of get_hw_addr

Now builds (still with warnings) and scans
Minor changes to pull request from ampersize