Fix stylistic warnings.
Fix cfg semantic change warnings.
Fix deprecation warning.
Replace static with const.
Merge pull request #7 from mrmonday/fix-warnings

Update libpnet for 0.12.0 changes