Fixed the inertia effect in the test program
Fixed bug 2508 - don't redefine WIN32_LEAN_AND_MEAN
Set the tag type in libtool invocations

Setting the tag type will let libtool work even when it cannot infer
the type of the code being built. One way libtool may fail to infer
the tag type is if one uses a mock compiler (such as for static
analysis).