Based unneeded header.
Updated semver macros.

- Masks are now unsigned.
- Masks are now in final position, rather than aligned to bit 0.
Added unit tests for semver.