Got rid of implicit cast warnings. Added release build for demo.