added windows subsystem support

Ignore-this: bf0e80c59d54ebfaab76a9c9bd0acf2a

darcs-hash:20140410151704-c21fe-ab39a0eb90cc3f4d269fee3bc363228f6342110b
added local ip code for windows

Ignore-this: 463f6fb1e29f56facf0674d1d75799af

darcs-hash:20140410163042-c21fe-13a76fe9c2f359115b44ecc28c7db40edcb5fc33
Merge branch 'master' into moc_parse