Created metro window, fixed compilation errors