Fixing arpcache.h

Moved around code blocks to fix compilation errors (implicit
definitions), modernized methods. Some work still needs to be done on
that