Set import library property for bundled imports
Made building of tests to configuration option
Changed how extracted dep files are handled to help MSBuild, minor cleanups