Generate static library for <toolset>msvc

Currently the library does not dllexport anything, so default build
configuration does not generate any import library.
Quick fix for Visual C++ is to generate static library instead.
This also allows to build tests with msvc.
Disable warning C4996 for toolset msvc

Thsi clears the annoying warning on 'std::_Fill_n': Function call with
parameters that may be unsafe.
It may be better to refine this change with define -D_SCL_SECURE
Merge pull request #2 from mloskot/bb-msvc-fixes

Fixes enabling build with <toolset>msvc