make demos compilable