Windows fixes and visual studio project conf for TP2