Support for Mac OSX

These changes appear to solve the problems I had when trying out rfmon on Mac OSX.
Verified to work with jeemon, i.e. "jeemon rfmon.tcl", but only tested on Mac so far.