Enhance warning checks for VS build