Warning fix and update VS project to fix compilation errors when building in Release mode