nulllocation: Remove nulllocation_t.

This is technically not even allowed according to the C standard, but is a GNU-specific extension
Remove some redundant casts on OSX
Merge pull request #948 from lioncash/struct

nulllocation: Remove nulllocation_t.
Merge pull request #949 from lioncash/cast

Remove some redundant casts on OSX