Merge pull request #14 from mtheall/master

Fix loading and saving AF_INET addresses.
Fix windows compilation.
another fix for SOC:U.
Refactor Windows support for SOC.