Added test sources to build
Added msvc compiler warnings for tests and library
Added macro to check if snprintf was already defined as _snprintf