Mac support in net.cpp

Compiler conditional to use boost for the threads array on a mac.