Fix patching issues on windows, fix some issues with concurrent network ticks

Signed-off-by: Ross Allan <rallanpcl@gmail.com>