F/fix warnings

fix a couple of compilation warnings and a s/r conflict in afsocket grammar.

Please merge!