Build standalone static library by default
Fix warnings reported by MSVC for the public API
Allow overriding dynamic vs static MSVCRT