Fixed compilation errors under different MSVC configurations
fix apptx application