Build and test fixes

- fixed build warnings (-Wall -Wformat -Wattribute) which are default on when building with clang
- check for zero pointer in _wcslen fixed TestInitializeSecurityContext