Added support for compiling static libraries and excluding specific ones
Fixes for building MSVC2013