Mac net.cpp fix

Compiler conditional to use boost for the threads array on a mac.
Merge pull request #2 from izerian/master

Mac support in net.cpp