compile on OS X

Code compiles on OS X Mountain Lion with Apple LLVM 4.2.
Functionality is not tested.
ns-3 integration is not tested.