Some windows cleanups.
Updated msvc compile and link flag functions.