A little cmake cleanup.
Really quiet visual studio's strcpy anger.
Add a simple static_assert mechanism, optionally used but default on CMake-based builds.