Updated for latest ctrulib + some cleanup. Attempt to run network_thread on non-cpu0.