vc10 build fixes #1
Enabled static linking
more windows fixes