fix build of demo applications