unix: fix ttl, multicast ttl and loop options on IPv6

Fixes #93

R=@bnoordhuis

/cc @MetaDark this should fix the issue you opened in #93 

PS: I'll do a follow-up commit for Windows.