fix windows platform and demos