fixed osx build
demos: fixed pathtracer