MSVC project file warning cleanup

Get rid of some linker warnings in certain configurations when using the MSVC project files, remove an option without effect and an unused global variable in the dll entry point.