catchup tm_net.c with runtime changes in https://github.com/tessel/runtime/pull/313
Merge pull request #61 from natevw/net-module

Compatibility with https://github.com/tessel/runtime/pull/313