fixed compilation issue of window example