BSD doesn't define SOL_IP; use IPPROTO_IP in that case.
Merge pull request #6 from twopir/master

BSD doesn't define SOL_IP; use IPPROTO_IP in that case.