Sanitize struct rule definition and usage.

Don't use anonymous union, as it's not supported before C11.
Use macros to access label id fields.
Add sample Smack policy for tests.