Changed to use LINKADDR_SIZE instead of sizeof() to select between
short address and long address as some platforms might use padding in
the struct. This fixes #555.
Merge pull request #635 from nfi/linkaddr-size

Use LINKADDR_SIZE instead of sizeof(linkaddr_t) to avoid struct padding problems.