Fix compile errors on network <= 2.3
Add .gitignore
Merge pull request #15 from lfairy/master

Fix compile errors in network <= 2.3