Windows: fix a couple of issues for build with MSVC

Summary:
- cmake: name conflict with 'nix'
- tests: use explicit ctor for NDSize
- operator<<: NIXAPI
- checks: NIXAPI
- validator.hpp: include guards