Flexibly determine demo.ocl location
Removed superfluous lifetime
Moved read_write back to passing references